package com.september.mongo.entities;

import java.util.List;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Reference;
import com.september.util.BaseData;

@Entity
public class Role extends BaseData {

	
	@Id
	private String roleName;
	private String description;
	@Reference
	private List<App> appList;
	
	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	
	public List<App> getAppList() {
		return appList;
	}

	public void setAppList(List<App> appList) {
		this.appList = appList;
	}

	@Override
	public String[] getOrdreredField() {
		// TODO Auto-generated method stub
		return new String[] { "roleName", "description" };
	}

	@Override
	public void manageRefernces() {
		// TODO Auto-generated method stub

	}

}
